package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.AuxiSysWeightPointConfMapper;
import com.tinycloud.miracll.product.domain.AuxiSysWeightPointConf;
import com.tinycloud.miracll.product.service.IAuxiSysWeightPointConfService;

/**
 * 自动助剂称量点位配置明细Service业务层处理
 * 
 * @author tiny
 * @date 2022-05-24
 */
@Service
@Slave1
public class AuxiSysWeightPointConfServiceImpl implements IAuxiSysWeightPointConfService {
    @Autowired
    private AuxiSysWeightPointConfMapper auxiSysWeightPointConfMapper;

    /**
     * 查询自动助剂称量点位配置明细
     * 
     * @param num 自动助剂称量点位配置明细主键
     * @return 自动助剂称量点位配置明细
     */
    @Override
    public AuxiSysWeightPointConf selectAuxiSysWeightPointConfByNum(Long num) {
        return auxiSysWeightPointConfMapper.selectAuxiSysWeightPointConfByNum(num);
    }

    /**
     * 查询自动助剂称量点位配置明细列表
     * 
     * @param auxiSysWeightPointConf 自动助剂称量点位配置明细
     * @return 自动助剂称量点位配置明细
     */
    @Override
    public List<AuxiSysWeightPointConf> selectAuxiSysWeightPointConfList(AuxiSysWeightPointConf auxiSysWeightPointConf) {
        return auxiSysWeightPointConfMapper.selectAuxiSysWeightPointConfList(auxiSysWeightPointConf);
    }

    /**
     * 新增自动助剂称量点位配置明细
     * 
     * @param auxiSysWeightPointConf 自动助剂称量点位配置明细
     * @return 结果
     */
    @Override
    public int insertAuxiSysWeightPointConf(AuxiSysWeightPointConf auxiSysWeightPointConf) {
        return auxiSysWeightPointConfMapper.insertAuxiSysWeightPointConf(auxiSysWeightPointConf);
    }

    /**
     * 修改自动助剂称量点位配置明细
     * 
     * @param auxiSysWeightPointConf 自动助剂称量点位配置明细
     * @return 结果
     */
    @Override
    public int updateAuxiSysWeightPointConf(AuxiSysWeightPointConf auxiSysWeightPointConf) {
        return auxiSysWeightPointConfMapper.updateAuxiSysWeightPointConf(auxiSysWeightPointConf);
    }

    /**
     * 批量删除自动助剂称量点位配置明细
     * 
     * @param nums 需要删除的自动助剂称量点位配置明细主键
     * @return 结果
     */
    @Override
    public int deleteAuxiSysWeightPointConfByNums(Long[] nums) {
        return auxiSysWeightPointConfMapper.deleteAuxiSysWeightPointConfByNums(nums);
    }

    /**
     * 删除自动助剂称量点位配置明细信息
     * 
     * @param num 自动助剂称量点位配置明细主键
     * @return 结果
     */
    @Override
    public int deleteAuxiSysWeightPointConfByNum(Long num) {
        return auxiSysWeightPointConfMapper.deleteAuxiSysWeightPointConfByNum(num);
    }
}
